[PATCH] mtd: core: fix NULL pointer dereference with mtd_check_of_node