Handle NPEs emminating from HTMLUnit converting the HtmlPage object to text