Allow value of TextField to be 0

This was broken in commit 1fba89
Merge pull request #2911 from mhelabs/fix-textfield-zero-value

Allow value of TextField to be 0