[PATCH 5.0 015/137] libnvdimm/namespace: Fix a potential NULL pointer dereference