Throw a more useful runtime exception when the iterator reaches a folder it cannot read