Fix for ticket #1245 - user groups should only be added if
no group restrict to parameter specified or
group restrict to parameter *is* empty