[libcommhistory] Auto-detect MIME type in declarative MmsHelper