Math in TSVB (and how to handle 0 in the denominator)

Some of my data for smaller time values may result in a divide by 0 error. At the moment, if this happens the whole visualization breaks and I can't see any columns even with correct data for that time period.

Is there any way to rewrite the math function so that it can handle this potential error but still display properly?

The current expression is:
divide(subtract(params.MaxA, params.MinA), subtract(params.MaxB, params.MinB))