Coverity: fix WPrefs workspace negative array index read