MT#8261 allow zero in number ranges

(cherry picked from commit bdd40e8449fc39db1230ae8142eb7d04a4b9227b)