Don't try to set element.textContent unless it's defined
Merge pull request #2 from Mumakil/no-text-content-unless-defined

Don't try to set element.textContent unless it's defined