fix(ui): crash when closing a window with a pending notification
Description
Sets an empty close callback function when stopping a notification.
This avoid to call the close callback on a deleted notification.
Closes #1028 (closed)
How to test it?
See the crash test on issue.