partition: fix mtd partition check oops

Take mtd partition check precedence over all others.
Fix oops while mtd partition check failed