avoid infinite loop when writting out docs with bookmarks (bnc#700370)
avoid infinite loop when writting out docs with bookmarks (bnc#700370)

The next position is either next attribute or next bookmark, whichever
comes first.

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