[ros-diffs] [dgorbachev] 26672: Fix a bug in ScServiceMainStub(), add more checks.