Code defensively for some potential failure scenarios with the new MIDI
devices...