Add safety check when binding to carrier app.

If a carrier app lost privilege at the same time we are fetching config
from it, there's a chance CarrierConfigLoader will use an invalid intent
to bind to the app, causing IllegalArgumentException.

This checks that the package name is not null just before use.

Bug: 23120391
Change-Id: I5bdf681b91509ec6c0937647c610959a2dd882b7
diff --git a/src/com/android/phone/CarrierConfigLoader.java b/src/com/android/phone/CarrierConfigLoader.java
index 2c2e095..09f12ff 100644
--- a/src/com/android/phone/CarrierConfigLoader.java
+++ b/src/com/android/phone/CarrierConfigLoader.java
@@ -259,8 +259,9 @@
                         newMsg.getData().putBoolean("loaded_from_xml", true);
                         sendMessage(newMsg);
                     } else {
-                        if (bindToConfigPackage(carrierPackageName, phoneId,
-                                EVENT_CONNECTED_TO_CARRIER)) {
+                        if (carrierPackageName != null
+                            && bindToConfigPackage(carrierPackageName, phoneId,
+                                    EVENT_CONNECTED_TO_CARRIER)) {
                             sendMessageDelayed(obtainMessage(EVENT_BIND_CARRIER_TIMEOUT, phoneId, -1),
                                     BIND_TIMEOUT_MILLIS);
                         } else {