Fix and cleanup code when linking subscriptions in streams to replays

Github

Github
API
This update fixes an issue where linked subscriptions to a replay directly did not get attached
This update fixes an issue where linked subscriptions to a replay directly did not get attached