Fix missing animation variant reset after committing resources in UnitAI.
Causing units to not show the gathering animation when close to a dropsite.
We might want to move this stuff to their respective components.
Differential revision: https://code.wildfiregames.com/D4937
Comments by: @Stan
Fixes #6566