Fixed a bug with toast.js when 'Notification' is undefined