HPCC-8567 Issues when graph control is missing

Renamed wrong variable.

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>
Merge pull request #3885 from GordonSmith/HPCC-8567-master

HPCC-8567 Issues when graph control is missing

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>