Fix exception when response is not a HTMLResponse and the response Conte...

...nt-Type is not set