Go back to clearing the entry after the "end" listeners.

Changing the AnimationState state from an "end" listener is problematic even when the entry is cleared before the listener, so better to make the track that is ending available to the listener.
Better handling of AnimationState state changes during listeners.

Except "end" listeners, don't change the state from there.