Fix incorrect assignment in content-mathml extension, and don't modify original document.
Resolves issue #1575 (closed).