[Location] Add LocationManager.NetworkProvider checking to fix xambug #18884