onEnd callback is now called also when no new assets are added.