Add an unconditional GetTextContent for elements

Fixes #2026. r? @Ms2ger