Added precaution in case the content type from the server is malformed.