Fix NPE in WifiCarrierInfoManager

Guard the code with a null check, and also limit this feature to Android S and later.

Bug: 178055635
Test: atest com.android.server.wifi
Change-Id: If69c7c05d7e71f5521f82e287dbb7d0d8fd71a77
2 files changed