BZ 1098408 - avoid NPE in IoUtils.filesInFolder()

Throw a reasonable error instead of NPE in case the directory is not accessible.