fix a KeyError that would occur if _update_cache is set on a response that has no content-type