Fix to execute cordova callback after the indicator is ready.