HPCC-10552 A few more one-off errors reported by Coverity

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