--- a/js/child.js	Tue May 13 00:00:42 2013
+++ b/js/child.js	Mon May 14 23:37:31 2013
@@ -18,7 +18,12 @@
   var settings = Drupal.settings.modalFrameChild || {};
 
   // If we cannot reach the parent window, then we have nothing else todo here.
-  if (!self.isObject(parent.Drupal) || !self.isObject(parent.Drupal.modalFrame)) {
+  try {
+    if (!self.isObject(parent.Drupal) || !self.isObject(parent.Drupal.modalFrame)) {
+      return;
+    }
+  }
+  catch(e) {
     return;
   }
 
