Avoid division by zero error. ArgumentError is more sensible.