Fixed problem with animation callbacks being fired after the container
element was removed from DOM