Fix #14290. Don't throw if text node is appended to table.

Alternative to gh-1347. I still wonder if we should be trying to suppress exceptions on bad markup. I tried to keep the assertion as vague and general as possible here, we are only saying it won't throw but don't care about what it generates. Thoughts?