(getugroups): Don't dereference a null pointer when