Fixed out of bounds bug, that caused MusE to hang while adding midi
track.