Fix tri state when:

* The first nodes are checked and the last not (no mixing)
* The Group is open
Merge pull request #753 from camptocamp/tristate

Fix tri state when: