NPE fix when update search results