Throw useful error message for unmatched or void element end tag.