Fix null check in dereferencing refList paths