Checking for nil value as default option instead of false.
It was checking for false which makes impossible to have an attribute
with default value equal false.
Added regression test.