Allow text string '0' to be rendered

Check for string length instead of truthiness when rendering text.