Update geolocation.php

In a local environment it will assign a test ip and also will return null if geoip_record_by_addr does not return an object to prevent a long lookup that returns an error.