Correct callback argument detection in `loadAssets`.