check for default value before localizing attribute
Merge pull request #816 from secretrobotron/default-attribute-localize-fix

check for default value before localizing attribute