Better error checking for the server-side geolocation.