DF#QCADOOCLS-2403 Fix division by zero