Now gives more sensible error message in empty MIDI file.