HPCC-8555 - reinstate getOptInt from mismerge

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #4030 from jakesmith/hpcc-8855_2

HPCC-8555 - reinstate getOptInt from mismerge

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>