When a SELECT statement fetch an empty result set the function onDataHandler will halt at this point, same thing happens when doing an UPDATE/INSERT.
command.onDataHandler = function( data ) {
if( Array.isArray( data ) === false ) {
if( this.errors ) {
this.completed = true;
this.onCompleteHandler( this.errors, null, null );
}