[BZ-995408] fix stream mode check when the beta node is in a subnetwork
(cherry picked from commit 25edeb4a6c6c50355c06d21b835ea03544e65cc4)