fixes: #3596 Validation failed: User has this hostgroup already

Fixed the code ordering issue that triggers bug #3596

http://projects.theforeman.org/issues/3596

the bug is triggered when a non-admin user (with "Automatically add new host groups to this use" ticked) creates a new host group.