[BUGFIX] Only set a session anonymous if in FE context