PMO-2600: corrected check before div operation