Fixes "Uncaught TypeError: Object [object Object] has no method 'cancel'" when closing notification by click (not timeout).