Fix for #4011, crash when two text nodes are appended in IE.