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).
I have now idea, I would remove this part ;) At worst we have a little bit more information than needed (as we don't do the substr anymore), but that's not a real problem...