Add a new case to deal with an object item in addWarning

Allows to add some information as item when an object is used in addWarning (case encountered in the PIM product writer).
FYI, we have issue in PIM with translation keys and this part