NumberInput: prevent returning NaN