fixed head requests throwing errors when the response body is null