Throw exception in case of ns_state is uninitialized
Version up to 0.79.3
Merge branch 'hotfix-mds-541'