#4571: Fixed trying to delete node twice.