notmuch-mutt: improve robustness of mutt macros