Bugfix: MidiFile did't handle end of track correctly in some cases.