Fix GH-16356: Segmentation fault with $outerHTML and next node (#16364) `$outerHTML` should only serialize the current node, not its siblings.