Handle null locations in onLocationChanged.