Added exception handling for editing preferences before they were loaded
(when loading classlist)