[tor-commits] [stem/master] Handling edge cases for earlier optimizations