fixes #16868. Avoid error when calling deleteItem() programmatically on an editable IconContainer. Thanks Adrian Vasiliu (IBM, CCLA).