fix TypeError with 'remove_groups=False' and 'groups' defined in user.present
Merge pull request #4575 from sedie-photobucket/develop

fix TypeError with 'remove_groups=False' and 'groups' defined in user.present