Handling situations where a response object/headers property/content-type header does not exist