Boolean attribute is set to false even if value is null