Sentry Issue: [POSTHOG-355](https://sentry.io/organizations/posthog/issues/2486864883/?referrer=github_integration)

```
Cohort.DoesNotExist: Cohort matching query does not exist.
(4 additional frame(s) were not displayed)
...
  File "ee/clickhouse/queries/sessions/list.py", line 155, in format_action_filters
    condition_sql, filter_params = format_action_filter_aggregate(entity, prepend=f"event_matcher_{index}")
  File "ee/clickhouse/queries/sessions/list.py", line 176, in format_action_filter_aggregate
    filters, filter_params = parse_prop_clauses(entity.properties, prepend=prepend, team_id=None)
  File "ee/clickhouse/models/property.py", line 41, in parse_prop_clauses
    cohort = Cohort.objects.get(pk=prop.value, team_id=team_id)
  File "django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 429, in get
    raise self.model.DoesNotExist(
```
posthog/api/test/test_event.py
team=self.team,
                    properties={"random_prop": ["item1", "item2"]},
                )
                event_factory(
                    distinct_id="bla", event="random event", team=self.team, properties={"random_prop": ["item3"]}
                )
                team2 = Organization.objects.bootstrap(None)[2]
                event_factory(distinct_id="bla", event="random event", team=team2, properties={"random_prop": "abcd"})
                response = self.client.get("/api/event/values/?key=random_prop").json()
                keys = [resp["name"].replace(" ", "") for resp in response]
                self.assertCountEqual(
                    keys,
                    [
                        "asdf",
                        "qwerty",
                        "565",
                        "false",
                        "true",
                        '{"first_name":"Mary","last_name":"Smith"}',
                        "item1",
                        "item2",
                        "item3",
                    ],
                )
                self.assertEqual(len(response), 9)
                response = self.client.get("/api/event/values/?key=random_prop&value=qw").json()
                self.assertEqual(response[0]["name"], "qwerty")
                response = self.client.get("/api/event/values/?key=random_prop&value=6").json()
                self.assertEqual(response[0]["name"], "565")
        def test_before_and_after(self):