HPCC-8567 Issues when graph control is missing

Renamed wrong variable.

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