Calling User::setSetting() fails if called before User::getSetting()