SNS: Fix NPE in name lookup for autocompletion of PV names