Fixed validation of empty values (they are always valid)