diff-root: fix comparisons of char vectors [ATEAM-911]
Same protection as what was done for generic branch types in !30195 (merged) a few years ago. Needed for !63467 (closed).
Same protection as what was done for generic branch types in !30195 (merged) a few years ago. Needed for !63467 (closed).