Fixed issue on populateFileStats where call back was not called if no files were found