Add a check that solve some exception on some tables opened in query editor