fix  #1149 0 was not considered as an existing value in the mandatory validator

Thank you for your comment.

value != null has been done by purpose, as undefined should be considered as an empty value too.
`value != null` is done as a shortcut of `value !== null && value !== undefined`