Allow text string '0' to be rendered

Check for string length instead of truthiness when rendering text.
Merge pull request #47 from nicklangridge/master

Allow text string '0' to be rendered