fix half of ticket #3106 Allow only not linked icons when adding an icon
in a library