HPCC-11007 Failed wildcard spray, empty directory, assert

Fix empty directory assert

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>