[[ Bug 11748 ]] If replacing XML text node contents with empty, then jus...

...t discard text nodes (don't try to insert a new one).