Fix error with media without content-type