Fix not being able to read MIDI input of less than 4 events.