Fixed: Error thrown if node is deleted and then the link it is attached to is deleted