This prevents an empty search entry from having the error style, otherwise typing in it just once and not finding a location will keep the entry red until the app is started anew.