mtd: Fix check in mtd_unpoint()