gres/gpu fix for bad configuration

Avoid referencing memory out of bounds when setting CUDA_VISIBLE_DEVICES
if FastSchedule=2 is configured AND the node has fewer GPUs configured
in gres.conf than in slurm.conf AND those GPUs have specific associated
files