Logging errors on unexpected HTML