Invalid vocabulary terms

Changes related to detecting, handling and presenting invalid vocabulary terms.  Also includes updates to the way search results tags work
rename to updateInvalidTermsRelations to make it clear this isn't changing the original document