fix #372 (don't render empty attributes)

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