fix textContent for nodes that do not have children

fixes #483
`toString` because `node.textContent = false` should set text content to `"false"`