[tor-commits] [metrics-tasks/master] Fix two bugs in current #1854 code.