kwsync: only use notmuch_get_revision when available