Added A. Kirtchwitz's check for set up empty MIME type.