Avoid recalculation of mass_ratio
If using a prior with mass_ratio=1
, in the conversion step, the mass ratio gets recalculated. Occasionally, numerical imprecision then results in the square root of a negative number. This avoid recalculating the mass ratio if it already exists, sidestepping the issue.