nss/getent.c initgroups_keys() does nothing if number==0. What it should do is the same as netgroup_keys(), i.e. display to stderr "Enumeration not supported on initgroups" and return with status 3.
I checked in a patch.