[TIMOB-16672] Fixed serious race condition with downloadFile() as well as offline error handling and proper error propagation back to the browser.
Merge pull request #5525 from cb1kenobi/timob-16672

[TIMOB-16672] Fixed serious race condition with downloadFile() as well a...