diff --git a/plugins/content_types/node_context/node_comments.inc b/plugins/content_types/node_context/node_comments.inc
index 0f0033d..a1cd331 100644
--- a/plugins/content_types/node_context/node_comments.inc
+++ b/plugins/content_types/node_context/node_comments.inc
@@ -23,16 +23,24 @@ function ctools_node_comments_content_type_render($subtype, $conf, $panel_args,
   $node = isset($context->data) ? clone($context->data) : NULL;
   $block = new stdClass();
   $block->module = 'comments';
-  $block->delta  = $node->nid;
 
-  $block->title = t('Comments');
-  if (empty($node)) {
-    $block->content = t('Node comments go here.');
+  // HAJ patch starts here
+  // Must handle NULL $node
+  if (is_null($node)) {
+    $block = NULL;
   }
-  else if ($node->comment) {
-    $block->content = ctools_comment_render($node, $conf);
-    // Update the history table, stating that this user viewed this node.
-    node_tag_new($node);
+  else {
+    $block->delta  = $node->nid;
+
+    $block->title = t('Comments');
+    if (empty($node)) {
+      $block->content = t('Node comments go here.');
+    }
+    else if ($node->comment) {
+      $block->content = ctools_comment_render($node, $conf);
+      // Update the history table, stating that this user viewed this node.
+      node_tag_new($node);
+    }
   }
 
   return $block;
