Fixed non-string data issue

var textNode = document.createTextNode('');

textNode.data = 123;

textNode.toString(); // Errors due to data not being a string.