[tor-commits] [tor/release-0.3.1] Fix several places where md-using relays would get wrong behavior.