Check for zero denominators in GET-SRATIONAL.

Preliminary fix for issue #2; still needs testing.