HPCC-8555 - reinstate getOptInt from mismerge

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>