Raise a ValueError if number_to_str number is negative

Otherwise we get into an infinite loop, and that's just a sad thing to happen.