Bug 1324443: Do not allocate 0 as a security group id

Change-Id: I4e49144928070f224a577c85a3c3d1f86fd3554b
Merge "Bug 1324443: Do not allocate 0 as a security group id"