processPrefsFile: fix UnboundLocalError: line 61