diff --git a/modules/hs_taxonomy.module b/modules/hs_taxonomy.module
index 2fc3fb4..401c39a 100644
--- a/modules/hs_taxonomy.module
+++ b/modules/hs_taxonomy.module
@@ -410,6 +410,11 @@ function hs_taxonomy_field_formatter_prepare_view($entity_type, $entities, $fiel
  * Implements hook_field_formatter_view().
  */
 function hs_taxonomy_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
+  // Bail out if the field is empty.
+  if (!count($items)) {
+    return;
+  }
+
   // Extract required field information.
   $vocabulary = taxonomy_vocabulary_machine_name_load($field['settings']['allowed_values'][0]['vocabulary']);
 
