undodlg: check if the toolbar is instantiated before access it