fix: allow anonymous theme switching when REQUIRE_SIGNIN_VIEW is set (#38956)