EMI: Decrease the iterator position when a material is erased from the material list.

This fixes a crash when restoring a save in the set lav.