SERVER-10046 fix situation where ns is null