Added divide by zero check in division for Rational

Fixes #239