HPCC-11430 Prevent stack fault when parameter not substituted

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