HPCC-11007 Failed wildcard spray, empty directory, assert

Fix empty directory handling error.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>