Fix typo in setSecurityGroup when no GID is set yet

Likewise other attributes, set security group as lazy in CGI
Merge pull request #619 from Zentyal/ejhernandez/set-sec-group-fix

Fix typo in setSecurityGroup when no GID is set yet