LongRational, fix negative denominator check