Fix for null value for contact id in adding/removing to group

Fix:
For getting rid of null value for contact ids