added check when deleting links to avoid exceptions from gui driven deletions
added check when deleting links to avoid exceptions from gui driven deletions

coreemu/core,coreemu/core,coreemu/core,coreemu/core