Catch malformed HTML errors