bug 4508: fix crash when editing patron attributes or message prefs