HPCC-11280 Fix clang compile error (and invalid code)

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