HPCC-12351 Avoid compiler error - ensure both branches are const char *

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