Verify groups string is not empty before trying add user to groups
Merge pull request #3732 from rishid/devel

User: when creating new user, ignore empty groups value