[issue18946] HTMLParser should ignore errors when parsing text in