wxgui: Prevent a crash at displaying the tooltip when the graph is not yet populated