Drupal 7 does not clean up references to terms when those terms are deleted. There are other contrib solutions to prevent this after they have been installed, but not to remove pre-existing broken references which is where this module comes in.

TO USE:
backup database
drush en drush_remove_broken_term_references
drush cc
drush rbtr --field=all