avoid div by zero in yorick/check-helpers.i