diff --git a/email.module b/email.module
index 57a8201..9653c41 100644
--- a/email.module
+++ b/email.module
@@ -106,6 +106,7 @@ function email_field_formatter_view($object_type, $object, $field, $instance, $l
 
     case 'email_contact':
       $ids = entity_extract_ids($object_type, $object);
+      if(empty($ids[0])) break;
       foreach ($items as $delta => $item) {
         $element[$delta] = array('#markup' => l(t('Contact person by email'), 'email/' . $object_type . '/' . $ids[0] . '/' . $instance['field_name']));
         // Since email is always sent to first item's email, break after any email address found.
