ERP5Type/Message: check mapping is a dict at creation time
If mapping is not a dict, we store a message that would fail later when being viewed, typically breaking History tab when used in workflow history.
If mapping is not a dict, we store a message that would fail later when being viewed, typically breaking History tab when used in workflow history.