Taxonomy - Replaced !$term->vid by empty($term->vid)