fix check_new_hist: transaction might not be in wallet