Fix DOMDocument::C14N()

Fixes #3440.

Seems like someone was in a hurry while writing this :smile: I needed a while to see what's wrong.