Added condition to check attributes setted to nil on attribute getter.

This change make possible to set an attribute to nil and make it return
nil even if a default value exists for that attribute.