checking that the context is empty when ICEs get removed from the index