SERVER-10471 fix win64 build by not going out of array bounds