ismindex: recover from completely empty streams