Fix a crash bug introduced in 223d354e3.

Arma found this and commented on #11243.  Bug not in any released
version of Tor.