Fixing an exception thrown when contact is not found

Change-Id: I53a3f5dd9587bd71cedd4fc79a5f59a40c95751d
diff --git a/src/com/android/contacts/views/ContactLoader.java b/src/com/android/contacts/views/ContactLoader.java
index 12d98b5..7a221a1 100644
--- a/src/com/android/contacts/views/ContactLoader.java
+++ b/src/com/android/contacts/views/ContactLoader.java
@@ -220,7 +220,8 @@
         }
 
         public boolean isDirectoryEntry() {
-            return mDirectoryId != Directory.DEFAULT && mDirectoryId != Directory.LOCAL_INVISIBLE;
+            return mDirectoryId != -1 && mDirectoryId != Directory.DEFAULT
+                    && mDirectoryId != Directory.LOCAL_INVISIBLE;
         }
 
         public int getDirectoryExportSupport() {