tdf#89783: fix another potential endless loop
tdf#89783: fix another potential endless loop

the same pattern as in 4de83e2c322509c0fb1b989f7e4898728fc4a

Change-Id: I38d48b9c1302f23a0d2537f8e5eced2ee64ddf4e

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