Fix exception when groups pulled back conflict with the session's repo and add a selenium test for good measure;