diff --git a/wordpress_attachment.inc b/wordpress_attachment.inc
index d7251bf..3187ca3 100644
--- a/wordpress_attachment.inc
+++ b/wordpress_attachment.inc
@@ -252,7 +252,7 @@ class WordPressAttachment extends WordPressMigration {
             ->execute();
     foreach ($nids as $nid_row) {
       $node = node_load($nid_row->destid1);
-      if ($node && is_array($node->body)) {
+      if ($node && isset($node->body) && is_array($node->body)) {
         foreach ($node->body as $language => $body) {
           $body = $body[0]['value'];
           // If we have the media module, rewrite the img tags to media tags if
