[tor-commits] [metrics-lib/master] Fix possible NPE in tests.