diff --git a/lib/htmlRenderer.js b/lib/htmlRenderer.js
index <HASH>..<HASH> 100644
--- a/lib/htmlRenderer.js
+++ b/lib/htmlRenderer.js
@@ -61,7 +61,9 @@ HTMLRenderer.prototype.renderPage = function (url, pageData, cb) {
     renderData.gpsiData = pageData.gpsi;
     renderData.browsertimeData = pageData.browsertime;
     renderData.wptData = pageData.webpagetest;
-    renderData.phantomjsData = pageData.phantomjs.getStats();
+    if (pageData.phantomjs) {
+      renderData.phantomjsData = pageData.phantomjs.getStats();
+    }
 
     renderData.config = config;
     renderData.pageMeta = {
don't get phantomjs metrics if we don't fetch phantomjs