Fixed bug in search button that allowed user to search for an empty query