Fix for ticket# 2528732

attribute is set to default value if setter returned invalid value and it was being initialized.