[tools] testbot/cgi: Fix handling of '0' in text fields.