Fixing NPE's in CommunityService Samples.