Don't set attribute when there isn't attribute in initialize hash
and attribute is optional.
(in Text and Quantity packages)