WPrefs: Add case check to fix -Wmaybe-uninitialized warning