Add tests and exceptions when trying to export empty files to lilypond or midi