scrub_attributes will now remove attributes without a value.