Fixing issue with loader.js not triggering oncomplete() when data array is an empty array