Don't try to use gtk when it is not initialized.