Fix unexpected error when requesting to join group: https://bugzilla.redhat.com/show_bug.cgi?id=998724

Fix unexpected error when requesting to join group: https://bugzilla.redhat.com/show_bug.cgi?id=998724
- caused by null pointer exception.