Improved error handling on geolocation.