Fixed toast's `afterHidden` and `beforeHidden` called twice when closed