mtd: ofpart: Fix incorrect NULL check in parse_ofoldpart_partitions()