Allow printing attributes with a value of zero

In case of 'number' attributes, let's print out their values when they
contain also the value of zero.
Merge pull request #1786 from mlocati/patch-1

Allow printing attributes with a value of zero