Fixes a NullReferenceException when the web response does not contain the headers for Content-Type or Content-Length