HPCC-11007 Failed wildcard spray, empty directory, assert

Fix empty directoryt assert

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