Fix cascading trigger
Fix cascading trigger

When a node is deleted, update_ancestors_after_delete trigger runs,
causing more nodes to be deleted.
Previously this would cause a cascade of triggers.
This change prevents this (unnecessary) cascade.

conceptsandtraining/libtree,jameshy/libtree