Contacts: Null check local group query result

Change-Id: I1240c73362ea946b906ecb9ecd27a2bcb0b8e545