fixed null pointer exception when location services is disabled.

added check for location services to be enabled