Fixed small issue with geolocate().

In some cases, it would say that geolocate failed when it actually did
not.