Check if mImapStore is null before attempting to open folder.

If the the port number for the carrier config is null or not a number,
mImapStore will not be initialized. This means that attempting to open
the ImapFolder will result in a NPE. Make a check first.

Bug: 21693619
Change-Id: Id1400ea41f916e26fed05db5e8343505f774e455
diff --git a/src/com/android/phone/vvm/omtp/imap/ImapHelper.java b/src/com/android/phone/vvm/omtp/imap/ImapHelper.java
index 684e5f5..e23dd41 100644
--- a/src/com/android/phone/vvm/omtp/imap/ImapHelper.java
+++ b/src/com/android/phone/vvm/omtp/imap/ImapHelper.java
@@ -357,6 +357,9 @@
 
     private ImapFolder openImapFolder(String modeReadWrite) {
         try {
+            if (mImapStore == null) {
+                return null;
+            }
             ImapFolder folder = new ImapFolder(mImapStore, ImapConstants.INBOX);
             folder.open(modeReadWrite);
             return folder;