BUG 8665: additional bug fix, error at time to download from an empty directory.