Fixing case where mimetype is somethign like (None, gzip)