Fixed the visualizer's registerthis() so it doesn't register anything if graphics are not enabled