Possibly fix null-dereference when trying to access font.

Bug: chromium:961250
Change-Id: If0f89d858368317f3cddf3f7976d4a6c45ec7b8b
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/54150
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fpdfapi/page/cpdf_tilingpattern.cpp b/core/fpdfapi/page/cpdf_tilingpattern.cpp
index 8c30cdc..f6655a6 100644
--- a/core/fpdfapi/page/cpdf_tilingpattern.cpp
+++ b/core/fpdfapi/page/cpdf_tilingpattern.cpp
@@ -52,6 +52,7 @@
   CPDF_AllStates allStates;
   allStates.m_ColorState.Emplace();
   allStates.m_GraphState.Emplace();
+  allStates.m_TextState.Emplace();
   allStates.m_GeneralState = pPageObj->m_GeneralState;
   form->ParseContent(&allStates, &matrix, nullptr, nullptr);
   m_BBox = pDict->GetRectFor("BBox");