[PATCH v2] nodedev: fix internal error when no defined mdevs exist