Coverity: fix WPrefs menu negative array index read