Handle HTMLParseError when stripping tags.

Also remove unused code from inbox/util/html.py.