Handle an error when the TEI can't be parsed