CB-7444 Fixes XHR callback failure when requested file doesn't exists

Fix for https://issues.apache.org/jira/browse/CB-7444