[MTD] Fix error checking after get_mtd_device() in get_sb_mtd functions