scrub_attributes removes attributes without a value.