midimap: Perform stricter error-checking.