onBeforeRemove in animation component doesn't handle array of pc.Assets (#2703)
onBeforeRemove in animation component doesn't handle array of pc.Assets (#2703)

* onBeforeRemove in animation component doesn't handle array of pc.Assets

Fixes: https://forum.playcanvas.com/t/after-loading-animation-from-glb-app-destroy-errors/16348/6

* Added comment to explain the change

* Removed unneeded lookup

Co-authored-by: Steven Yau <0dbe529c4dfad996667815f32902cb3a2b94c94f@stevenyau.co.uk>
playcanvas/engine,MicroWorldwide/PlayCanvas,playcanvas/engine,MicroWorldwide/PlayCanvas