Fixes potential problem when removing entities from PooledEngine