fix NoneType error in RangeField.clean