More explicit catching of div by zero error