AnimationPlayer caches animated nodes. It may not notice if a node disappears; ClearCaches forces it to update the cache again.
public void ClearCaches()