Coverity: fix WPrefs preference negative array index read