localgroups: fix null pointer access

Change-Id: I540a4b9e7b1f052b8a22bdd9a68ef8b8d17140ef