coverity#1255388 Division or modulo by float zero
coverity#1255388 Division or modulo by float zero

and

coverity#1255387 Division or modulo by float zero

Change-Id: I86c6d5874a7a2c2eecefe7f786edff89ff50ffbf

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