tools/mtd-utils: fix a segfault in parsing the device table