Avoid a crash in CFXJSE_Value::ToString().

BUG=pdfium:1230

Change-Id: I328ef0e1462647323b1cbcd1acf76bd223bb3d40
Reviewed-on: https://pdfium-review.googlesource.com/c/48690
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/xfa/cjx_object.cpp b/fxjs/xfa/cjx_object.cpp
index eee98f0..7efb0a4 100644
--- a/fxjs/xfa/cjx_object.cpp
+++ b/fxjs/xfa/cjx_object.cpp
@@ -1313,6 +1313,9 @@
     return;
   }
 
+  if (pValue->IsEmpty())
+    return;
+
   WideString wsThickness = pValue->ToWideString();
   for (int32_t i = 0; i < border->CountEdges(); ++i) {
     CXFA_Edge* edge = border->GetEdgeIfExists(i);