[tor-commits] [tor/master] Add some assertions to try to catch #17752