[tools] testbot/web: Fix the $Task->TestFailures check.