Index: /CKReleaser/trunk/_source/includes/samplesprocessor.js
===================================================================
--- /CKReleaser/trunk/_source/includes/samplesprocessor.js	(revision 3682)
+++ /CKReleaser/trunk/_source/includes/samplesprocessor.js	(revision 3683)
@@ -74,6 +74,8 @@
 		node.code = newDocument.importNode( node.code, true );
 
-		CKRELEASER.xml.replaceNodeWithNodes( newDocument, newDocument.getElementById( 'html' ), node.html.getChildNodes() );
-		CKRELEASER.xml.replaceNodeWithNodes( newDocument, newDocument.getElementById( 'code' ), node.code.getChildNodes() );
+		if ( newDocument.getElementById( 'html' ) )
+			CKRELEASER.xml.replaceNodeWithNodes( newDocument, newDocument.getElementById( 'html' ), node.html.getChildNodes() );
+		if ( newDocument.getElementById( 'code' ) )
+			CKRELEASER.xml.replaceNodeWithNodes( newDocument, newDocument.getElementById( 'code' ), node.code.getChildNodes() );
 
 		node.styles = document.getElementById( 'styles' );
