empty search result exception fix