vim: fix some error checking in NM_search_thread_id()