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