Allow value of TextField to be 0

This was broken in commit 1fba89