scrub_attributes removes attributes without a value.
Merge pull request #51 from kaspth/remove-empty-attr

Remove attributes without a value.