fix node attribute parsing for empty/zero values
Merge pull request #652 from ikkez/template-fixes

[template] fix node attribute with empty & zero values