Optimize reportNetworkConnectivity permission check

Eliminate overhead in the common case by only checking for the permission
when the call fails.

Change-Id: I7d8c680ff745963b82b374596616cdd70922adfc
1 file changed