Add sanity check for unindexed IID

To be removed later.