[TECH SUPPORT] LPS-37335 WorkflowDefinitionLink is not used when staging is enabled

Hi Tamás,

Resolution: Added code to make sure the WorkflowDefinitionLink is tied to live group.

Please review my changes.

Thanks,
Ákos