fix #31051

#31051 crash was caused by deleting one of two overlapping spanners and later referring to it.