Fix crash when content-type is not defined on response and attempting to log body.