fixed ui anmation crash when stop animation
Merge pull request #4319 from liamcindy/develop

[ci skip]fixed ui anmation crash when stop animation for develop branch