fix bug in handling locationManager null