Make setting an invalid value equivalent to removing the value.