[Backport] Disabling membership creation if the role isn't valid for the project