Remove from DB any flexible attribute that is None

Modification at API level: a attribute with None value should not appear in DB when it is a flexible attribute.
Otherwise there is no way to remove a flexible attribute (i.e. from xxx_attributes DB tables).