Fix trying to remove a node that was already removed.