Index: taxonomy.module
--- taxonomy.module Base (BASE)
+++ taxonomy.module Locally Modified (Based On LOCAL)
@@ -1439,7 +1439,7 @@
             '#markup' => check_plain($item['name']),
           );
         }
-        else {
+        elseif (!empty($item['taxonomy_term'])) {
           $term = $item['taxonomy_term'];
           $uri = entity_uri('taxonomy_term', $term);
           $element[$delta] = array(
