Fix NPE in VisualisationFrame when in debug logging is enabled