This should be:
if (this.communityUuid; ) {
    return this.communityUuid; 
} else {
    return this.service.getUrlParameter(this.getAsString("communityUrl"), "communityUuid"); 
}
So it will work with an Invite that is not loaded