Fix #2045 about form element disable null value attribute

See #2045