Fix `None` iteration `TypeError`.