Added support for null values

This patch allows the spinner fields to be cleared even when invalid values are disallowed. In this mode, the field either contains null or a value within the min/max range of the spinner.