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