notmuch search: Avoid infinite stream of exceptions from "notmuch search"