How to reproduce:
1. Open the user-attached project (My project.zip)
2. Make sure that SampleScene is open
3. Build and Run the project for WebGL
4. In the browser player view press the button in the middle
5. Observe the error
6. Close the error window
7. Try pressing the button again
Expected result: the player is no longer interactable and is frozen
Actual result: the button can be pressed again
Reproducible with: 2019.4.40f1, 2020.3.36f1, 2021.3.5f1, 2022.1.6f1, 2022.2.0a17
Reproducible on: Windows 10, Ubuntu 20.04