HPCC-9926 Hex Preview Causes ESP Exception

Fixes HPCC-9926

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>