Index: /CKEditor/trunk/_source/plugins/selection/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 6029)
+++ /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 6030)
@@ -887,10 +887,12 @@
 							if ( !node || node.type != CKEDITOR.NODE_ELEMENT )
 								node = range.startContainer;
-
-							var child = node.getFirst();
-							while (  child && child.type == CKEDITOR.NODE_ELEMENT )
-							{
-								node = child;
-								child = child.getFirst();
+							else
+							{
+								var child = node.getFirst();
+								while (  child && child.type == CKEDITOR.NODE_ELEMENT )
+								{
+									node = child;
+									child = child.getFirst();
+								}
 							}
 						}
