Session: added checking groups list for emptiness at iterator operation.
Merge pull request #395 from shaitan/lts

Session: added checking groups list for emptiness at iterator operation.