Crash data show that rootNode can be null in this function.
Pull request: https://github.com/WebKit/WebKit/pull/1477
Committed r295504 (251509@main): <https://commits.webkit.org/251509@main> Reviewed commits have been landed. Closing PR #1477 and removing active labels.
<rdar://problem/95061876>