Only change ID on nodes that don't already have an ID for rooted qSA. Fixes #7212.