[tor-commits] [tor/master] Move other #9731 check to start of its functions