[BACKPORT PATCH] mtd: nand: fix return value check for bad block status