Fix fromations gathering treasures.
Introduced in r24989 / rP24989.
The formation ignored the order to collect a treasure, but got into a individual state (which should not happen).
Subsequent orders may fail due to unimplemented components/functions.
Reported by: @wowgetoffyourcellphone in https://wildfiregames.com/forum/topic/39973-a25-feedbacks-from-testing/page/15/?tab=comments#comment-444979.
Differential revision: https://code.wildfiregames.com/D4207
Tested by: @wowgetoffyourcellphone
Comments by: @Stan, @wraitii
Fixes: #6266