Fix a traceback generating bug in the refreshing of DHT entries.