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

`value !== null` should be preferred if you want to explicitly check for `null`...