Handle case when mime-type is None