iter: be a bit paranoid

Clear out iter on failure. It doesn't really guarantee anything, but can
help cause null dereferences sooner.