$.unique works only for DOM elements
Merge pull request #9732 from owncloud/fix-9716

do not show selected groups twice after user creation