correctly reset search UI after empty results