diff --git modules/overlay/overlay-parent.js modules/overlay/overlay-parent.js
index 0ce93ae..1bd2b9a 100644
--- modules/overlay/overlay-parent.js
+++ modules/overlay/overlay-parent.js
@@ -29,7 +29,10 @@ Drupal.behaviors.overlayParent = {
     // Resize the overlay when the toolbar drawer is toggled.
     $('#toolbar a.toggle', context).once('overlay').click(function () {
       setTimeout(function () {
-        Drupal.overlay.resize(Drupal.overlay.iframe.documentSize);
+        // Resize the overlay, if it's open.
+        if (Drupal.overlay.iframe.documentSize) {
+          Drupal.overlay.resize(Drupal.overlay.iframe.documentSize);
+        }
       }, 150);
 
     });
