HPCC-11007 Failed wildcard spray, empty directory, assert

Update after review.

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