Index: /CKEditor/trunk/_source/core/dom/walker.js
===================================================================
--- /CKEditor/trunk/_source/core/dom/walker.js	(revision 3393)
+++ /CKEditor/trunk/_source/core/dom/walker.js	(revision 3394)
@@ -54,5 +54,5 @@
 				break;
 
-			if ( !this.evaluator && this.evaluator( node ) !== false )
+			if ( !this.evaluator || this.evaluator( node ) !== false )
 				return node;
 			else if ( breakOnFalse && this.evaluator )
@@ -68,5 +68,5 @@
 	function iterateToLast( rtl )
 	{
-		var node, last;
+		var node, last = null;
 
 		while ( node = iterate.call( this, rtl ) )
