HPCC-9966 Graph control disappears when switching HTML tabs

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