[visualizations] fix crash in goom fixes #12584
Merge pull request #2146 from MartijnKaijser/12584

[visualizations] fix crash in goom fixes #12584