mtd: mtdpart: prevent a read from regions[-1]