Merge "Fix getWifiManager exception if phone is encrypted"