Fix profile sampling: subscription out of range in a rare case.
Fix profile sampling: subscription out of range in a rare case.

patwonder/pbrt-v2-skin,patwonder/pbrt-v2-skin,patwonder/pbrt-v2-skin,patwonder/pbrt-v2-skin,patwonder/pbrt-v2-skin