notmuch-index-message: Fix handling of thread_id terms.