fires closed.bs.alert *after* DOM detach() as per #12379

As per #12379

Fires closed.bs.alert *after* element is removed from DOM.
Previously it fired while the element was still attached.