Fixed an error where invalid html would cause HTMLRetriever to crash when fetching page source.