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