Fixed NPE when NLS root is not defined

#WT-40 fixed work 30m