fix bug with 'constant' PDFs

When PDFs consist of the same value (ie, there is no variation), there
will be a lot of errors (ie division by zero, invalid values). Add 1e-15
to zeros in denominators to avoid this. Note that if possible, a
Constant parameter object should be used instead