Fix GH-15570: Segmentation fault (access null pointer) in ext/dom/html5_serializer.c Closes GH-15572.