Fix for case where MIME type is malformed (missing base type), and
reducing logging.