CB-8093 Fixes incorrect FileTransferError returned in case of download failure

This fixes [CB-8093](https://issues.apache.org/jira/browse/CB-8093)