HPCC-11300 Fix items highlighted in code review

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>