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