Turns out not all elements with siblings have a parent element.
rdar://110129945
Pull request: https://github.com/WebKit/WebKit/pull/17222
Committed 267454@main (82d7f771ca51): <https://commits.webkit.org/267454@main> Reviewed commits have been landed. Closing PR #17222 and removing active labels.