Detect and throw on division by zero