WifiSupplicantControl: Add missing null check for psk

Test: Compiles
Change-Id: I9968950a73527c23ad576eac8a8405d6aec309b4
(cherry picked from commit c7ddffabcd191c2bfd251b3d5d321e6e8f1d0bd3)
diff --git a/service/java/com/android/server/wifi/WifiSupplicantControl.java b/service/java/com/android/server/wifi/WifiSupplicantControl.java
index a587fcd..5b7718b 100644
--- a/service/java/com/android/server/wifi/WifiSupplicantControl.java
+++ b/service/java/com/android/server/wifi/WifiSupplicantControl.java
@@ -502,7 +502,7 @@
         // Add quotes if they're not present in the provided psk.
         // Temporary fix until the HIDL interface is re-enabled.
         String preSharedKey = config.preSharedKey;
-        if (!preSharedKey.startsWith("\"")) {
+        if (!TextUtils.isEmpty(preSharedKey) && !preSharedKey.startsWith("\"")) {
             preSharedKey = "\"" + preSharedKey + "\"";
         }
         // Prevent client screw-up by passing in a WifiConfiguration we gave it