longparas: sneaky sal_uInt16 casts truncating values causing loop

on exporting a longpara document to our own .odt format

Change-Id: I2e517cd5ec6a29c8bcf853361a24bde25df15abb