Trap TypeError in collect when trigger had failed.
Trap TypeError in collect when trigger had failed.

R=vadimsh@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1098333002

luci/luci-py,luci/luci-py,luci/luci-py,luci/luci-py