Properly handle cases when number extremum is 0

The condition does not hold when `schema.minimum` or `schema.maximum` equals 0, even if the property actually defined.