Fixed bug: Animation freezes when setting equal frame

Fixed bug: Setting Sprite.frame to the same frame sequence would cause the animation to freeze, which was being caused by shallow comparison condition in frame.set()

Added functionality: Dispatch Event.ANIMATION_END when null element is encountered in Sprite frame sequence.