When modal is disposed some events still can be fired that can lead to undefined access exception.
(See screenshot)
To Reproduce
It's hard to reproduce issue while happening in rare cases due to some rase.
but sometimes when modal is disposed parameres are empty and line displayed in the screenshot is crashing app.
Expected behavior
Just check that parameters are not undefined before using them.
Describe the bug
When modal is disposed some events still can be fired that can lead to undefined access exception. (See screenshot)
To Reproduce
It's hard to reproduce issue while happening in rare cases due to some rase. but sometimes when modal is disposed parameres are empty and line displayed in the screenshot is crashing app.
Expected behavior
Just check that parameters are not undefined before using them.
Actual Behavior
Exception.
Screenshots
Lines 55 and 60![image](https://github.com/framework7io/framework7/assets/17121033/fa068d4d-352f-4904-8494-2f26cf9cbb50)