Checking that the content-type is actually set

During response interception we need to check that the content-type is actually set before we use it. See #25