Teach unlinkNode to deal with nodes with multiple parents.