imc: Catch a division by zero