Fix handling of negative numbers with input_format_skip_unknown_fields=1 set

Fixed incorrect behavior when input_format_skip_unknown_fields=1 is set and there are negative numbers.