Catch TypeError when parsing web pages.