Fix #11978

Resolves recursion bug (https://trac.torproject.org/projects/tor/ticket/11978)