$.unique works only for DOM elements

Fixes #9716: upon user creation the selected groups have been shown twice in the multiselect.

Please test/review @brozkeff @PVince81 @VicDeo or others

@karlitschek papercut – OC 7 CE or not?