fix: crash when setWindowOpenHandler
callback throws
#34627
Merged
setWindowOpenHandler
callback throws
#34627