WPrefs: Fix crash when switching to mouse settings panel