removeEntity: fix call to splice

The call to `splice` in `removeEntity` was missing the second argument. So the splice would remove all entities from the index back.