Fixed null pointer in js settings for anon user