Fix gnome-shell crashes when OSDLrc.PreferencesDialog close.