[MSC-126] provided test to reproduce the NPE issue
[MSC-126] fixing issue - it is possible that dependent can be null on MSC shutdown