numfmt: fix strtol() return code handling