diff --git a/token_body_image.module b/token_body_image.module
index 6a668f8be779ebfbe0da1b308e35344464893cb0..1c4cc79c9d5785c93f1c664cf76fa4018d6f99c0 100644
--- a/token_body_image.module
+++ b/token_body_image.module
@@ -28,7 +28,7 @@ function token_body_image_tokens($type, $tokens, array $data, array $options, Bu
     foreach ($tokens as $name => $original) {
       switch ($name) {
         case 'body_image_url':
-          $body = $node->get('body')->getValue();
+          $body = (!empty($body)) ? $body[0]['value'] : NULL;
           $body = $body[0]['value'];
           if (!empty($body)) {
             $dom = new DOMDocument();