Fix GLInterfaceValidation test after "Remove GrContextFactory::getGLContext"

Fix GLInterfaceValidation test crash after "Remove
GrContextFactory::getGLContext" commit.

Review URL: https://codereview.chromium.org/1464283002
diff --git a/tests/GLInterfaceValidationTest.cpp b/tests/GLInterfaceValidationTest.cpp
index 3632c25..5736e2d 100755
--- a/tests/GLInterfaceValidationTest.cpp
+++ b/tests/GLInterfaceValidationTest.cpp
@@ -17,7 +17,7 @@
         GrContextFactory::GLContextType glCtxType = (GrContextFactory::GLContextType)i;
         // this forces the factory to make the context if it hasn't yet
         GrContextFactory::ContextInfo* contextInfo = factory->getContextInfo(glCtxType);
-        SkGLContext* glCtx = contextInfo->fGLContext;
+        SkGLContext* glCtx = contextInfo ? contextInfo->fGLContext : nullptr;
 
         // We're supposed to fail the NVPR context type when we the native context that does not
         // support the NVPR extension.