Fix dumpNodeToText crash on CDATA nodes.