Improves compliance to Iterator interface
Fixes infinite loop in text export when ID and content are empty