Index: /trunk/htmlarea.js
===================================================================
--- /trunk/htmlarea.js (revision 620)
+++ /trunk/htmlarea.js (revision 621)
@@ -5940,5 +5940,5 @@
         if ( !editor.config.stripScripts )
         {
-          var innerText = (HTMLArea.is_ie) ? "\n" + root.innerHTML.replace(/^[\n\r]*/,'').replace(/\s+$/,'') + '\n' + indent : root.firstChild.nodeValue;
+          var innerText = (root.hasChildNodes()) ? ((HTMLArea.is_ie) ? "\n" + root.innerHTML.replace(/^[\n\r]*/,'').replace(/\s+$/,'') + '\n' + indent : root.firstChild.nodeValue) : '';
           html += innerText + '</'+root_tag+'>' + ((HTMLArea.is_ie) ? '\n' : '');
         }
