boost::rational throws if 0 is passed as denominator

Change-Id: I312fd6b964555b3b4aa4e22cec6054c9a83b2c52