Random note should skip empty files

There are many ways in which we might want to filter “random notes”.
I think it would be easier to direct this towards third-party plugin.
There are too many more general core feature requests (for this to become priority).

Relevant: