bugfix: didn't handle MIDI files without track headers.