HPCC-10533 Fix EnvGen segmentation fault

  - Regression

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Community Edition 4.2.0-4

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>