Fix iterator management
Fix iterator management

Change-Id: I32ac35d3a4d0cc2376c5890086d1ff011442683d
Reviewed-on: https://gerrit.libreoffice.org/5998
Reviewed-by: Noel Grandin <43cf663cd6d200b6fda42cd74c2a9550f05ea5d0@gmail.com>
Tested-by: Noel Grandin <43cf663cd6d200b6fda42cd74c2a9550f05ea5d0@gmail.com>

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core