Fix an exception thrown when double-clicking or selecting an entry/guid in the search form while the thread was still searching