TAP5-2430: Throw an exception in the case that the content type is null.