fixed lxml errors when reading Tomcat error messages. I think assuming tomcat sends certain invalid responses is dangerous