bugfix for UI animation playing crash if GUI JSON file is loaded again.
Merge pull request #8167 from hongliang-goudou/v3

bugfix for UI animation playing crash if GUI JSON file is loaded again.