Add a safe-guard in case content-type header is missing for some reason.