Location.toString() handles null location names.
Fix NetworkProvider.hasCapabilities().