(#6936) AIX user provider fails if a gid is specified instead of a name.

Fixes an undefined method error.