Fix crash in removeOverlappingNotes function (midi import)
Merge pull request #487 from trig-ger/midi_fixes

Fix crash in removeOverlappingNotes function (midi import)