Fix selecting formations when cycling through idle entities.
Since formations have cmpIdentity now (r26476 / rP26476), they were incorrectly selected when cycling through idle entities.
Reported and tested by: @Langbart
Differential revision: https://code.wildfiregames.com/D4588
Fixes #6490