Fix bug when the query to list ip which have no AS failed