[PATCH] nvdimm: namespace_devs: fix a potential NULL pointer dereference