fix: remove stale capture listeners from spread attributes (#18618)