fixed invariant in ECS component pool

Status Job ID Name Coverage
  Build
passed #8989
build-clang

00:02:51

passed #8988
build-gcc

00:03:11