diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
index 6a3f82bbb..707999c31 100644
--- a/unpacked/jax/output/CommonHTML/jax.js
+++ b/unpacked/jax/output/CommonHTML/jax.js
@@ -502,6 +502,7 @@
//
var jax = script.MathJax.elementJax, math = jax.root,
node = document.getElementById(jax.inputID+"-Frame");
+ if (!node) return;
this.getMetrics(jax);
if (this.scale !== 1) node.style.fontSize = jax.CHTML.fontSize;
//