flashcast: don't write mtd partition when mksquashfs fails