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

and

coverity#1267699 Division or modulo by float zero

Change-Id: If31037712208673438155b30369ebe1068387cba

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