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

- Bug fix, error at time to download from an empty directory.
- Adding default parameters to Configuration::exists function.