BUGFIX do not try to validate an empty value when not required