Another fix for windows crash with FOREACH_PARAM, it was still accessing an element beyond the end of the vector which could crash.
Another fix for windows crash with FOREACH_PARAM, it was still accessing an
element beyond the end of the vector which could crash.

brechtvl/OpenShadingLanguage,gzorin/OpenShadingLanguage,svenstaro/OpenShadingLanguage,sjparker/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,mcanthony/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,mcanthony/OpenShadingLanguage,fpsunflower/OpenShadingLanguage,lgritz/OpenShadingLanguage,lgritz/OpenShadingLanguage,yaroslav-tarasov/OpenShadingLanguage,imageworks/OpenShadingLanguage,brechtvl/OpenShadingLanguage,rlmh/OpenShadingLanguage,lgritz/OpenShadingLanguage,brechtvl/OpenShadingLanguage,juvenal/OpenShadingLanguage,Anteru/OpenShadingLanguage,imageworks/OpenShadingLanguage,mcanthony/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,aconty/OpenShadingLanguage,lgritz/OpenShadingLanguage,sjparker/OpenShadingLanguage,sjparker/OpenShadingLanguage,aconty/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,Anteru/OpenShadingLanguage,rlmh/OpenShadingLanguage,svenstaro/OpenShadingLanguage,fpsunflower/OpenShadingLanguage,imageworks/OpenShadingLanguage,gzorin/OpenShadingLanguage,sjparker/OpenShadingLanguage,yaroslav-tarasov/OpenShadingLanguage,fpsunflower/OpenShadingLanguage,yaroslav-tarasov/OpenShadingLanguage,aconty/OpenShadingLanguage,imageworks/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,imageworks/OpenShadingLanguage,svenstaro/OpenShadingLanguage,rlmh/OpenShadingLanguage,gzorin/OpenShadingLanguage,Anteru/OpenShadingLanguage,yaroslav-tarasov/OpenShadingLanguage,mcanthony/OpenShadingLanguage,gzorin/OpenShadingLanguage,brechtvl/OpenShadingLanguage,svenstaro/OpenShadingLanguage,brechtvl/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,aconty/OpenShadingLanguage,Anteru/OpenShadingLanguage,aconty/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,rlmh/OpenShadingLanguage,fpsunflower/OpenShadingLanguage,juvenal/OpenShadingLanguage,juvenal/OpenShadingLanguage,lgritz/OpenShadingLanguage,gzorin/OpenShadingLanguage,juvenal/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage