fix #372 (don't render empty attributes)

fix #372
It is general solution. All attributes with an empty values will not be rendered.