Refs #9369 Add check for end of iterator.