Fixes #5662 Also made it use OC.Notification instead of directly access the notification HTML element.