Avoid empty attribute blocks.
Merge pull request #151 from zshapiro/avoid_empty_attributes

Avoid empty attribute blocks.