BUG: invalid import checking in gbq (GH8587)