Fixed latent bug (segfault) when walking directory tree (rev. 17_b13)

Signed-off-by: nixnodes <code@eth.si>