Check that MIDI_RESPONSE[cmd] exists before attempting to invoke

Sorry about the whitespace lines, my editor automatically removes EOL whitespace. I can redo the commit if you'd like