emacs: Improve error handling for notmuch-call-notmuch-json