This is better than watching whether ngramsParent is Nothing because subtrees could be edited as well.