Reproduction steps:
1. Open project “StylesheetFoldout”
2. Open “SampleScene”
3. Enter Play Mode
4. Click anywhere in Game view
5. Observe the Console
Expected result: NullReferenceException error is thrown
Actual result: no errors are thrown
Reproducible with: 2021.3.8f1, 2021.3.23f1
Not reproducible with: 2021.3.7f1, 2022.2.16f1, 2023.1.0b13, 2023.2.0a11
Couldn’t test with: 2020.3.47f1 (due to compiler errors)
Reproducible on: macOS Ventura 13.2.1 (Intel)
Note: also reproducible in Standalone Player