HPCC-10552 Fix out of bound access - found by coverity scan

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>