Fix NPE when pre-populating Autofill data.

If the user has no me profile, bail out to avoid a NPE.

Bug: 5869116
Change-Id: I80701d4563f394879917b6242ace7b2bae584fb2
diff --git a/src/com/android/browser/AutofillHandler.java b/src/com/android/browser/AutofillHandler.java
index dc23d00..be4fa9c 100644
--- a/src/com/android/browser/AutofillHandler.java
+++ b/src/com/android/browser/AutofillHandler.java
@@ -158,6 +158,10 @@
             Cursor c = mContext.getContentResolver().query(uri, new String[] { field },
                     ContactsContract.Data.MIMETYPE + "=?", new String[] { itemType }, null);
 
+            if (c == null) {
+                return null;
+            }
+
             try {
                 // Just use the first returned value if we get more than one.
                 if (c.moveToFirst()) {