[graph] fix updateGraph function so that labels are rendered properly

This was visible in the screenshot, where forceAtlas is not started
initially and there were no labels, even though the setting was correct.
3 jobs for 512-dev-show-screenshot-graph-labels in 21 minutes and 44 seconds (queued for 5 seconds)
latest
Status Job ID Name Coverage
  Check Lint
passed #19211
check-lint

00:06:14

 
  Compile
passed #19212
compile

00:08:37

 
  Test
passed #19213
test

00:06:53