#23305 - Fixed Nuke secondary publish hook so that it no longer relies
on outputs being in a specific order!