AUDIO: fix invalid mem access in midiparser.cpp

(this caused a crash in MI2)