Do else if after checking for null content-type.