[tor-commits] [tor/master] Add a check and a cast in rephist.c to fix a warning