Add an unconditional GetTextContent for elements

Fixes #2026