diff --git a/contrib/emvideo/emvideo.theme.inc b/contrib/emvideo/emvideo.theme.inc
index bbebbd2..af6a9b0 100644
--- a/contrib/emvideo/emvideo.theme.inc
+++ b/contrib/emvideo/emvideo.theme.inc
@@ -135,7 +135,7 @@ function theme_emvideo_video_thumbnail($field, $item, $formatter, $node, $no_lin
       $thumbnail_url = url($thumbnail_url, array('absolute' => $options['absolute']));
     }
     if (isset($options['return_url'])) {
-      return $options['raw'] ? $thumbnail_url : url($thumbnail_url);
+      return (isset($options['raw']) && $options['raw']) ? $thumbnail_url : url($thumbnail_url);
     }
     $width = isset($options['width']) ? $options['width'] : NULL;
     $width = isset($width) ? $width : ($field['widget']['thumbnail_width'] ? $field['widget']['thumbnail_width'] : variable_get('emvideo_default_thumbnail_width', EMVIDEO_DEFAULT_THUMBNAIL_WIDTH));
