fixes #1243 if the user deliberatly puts a blank search, it will accept it, otherwise fill in the search from localstorage so that it remembers the last thing you searched for