diff --git a/src/com/google/javascript/jscomp/ConformanceRules.java b/src/com/google/javascript/jscomp/ConformanceRules.java
index <HASH>..<HASH> 100644
--- a/src/com/google/javascript/jscomp/ConformanceRules.java
+++ b/src/com/google/javascript/jscomp/ConformanceRules.java
@@ -2147,7 +2147,7 @@ public final class ConformanceRules {
         return Optional.absent();
       }
       JSType elementType = compiler.getTypeRegistry().getGlobalType("Element");
-      if (type.isSubtypeOf(elementType)) {
+      if (elementType != null && type.isSubtypeOf(elementType)) {
         return Optional.of(propertyName);
       }
       return Optional.absent();
Fix crashes due to lack of typing info.

PiperOrigin-RevId: <I>