Improves error handling when Web MIDI isn't available.