Fix sysex message recording to midi file output.