Fixes logging incorrectly attempting read header from parsed_response.

Fixes #299

I would write a test for this but I'm not sure how. It does fix my repro case, though, and I see some similar logic in `curl_logger.rb`.