Fixed issues with AdminDialog (rebased onto develop)



This is the same as gh-2492 but rebased onto develop.

----

Another PR (presumably #2339 ) introduced some issues to the AdminDialog, this PR should fix them.
It was not possible anymore to create users because the group selection was empty.

To Test:
Just create a group and a user in Insight.