mtd: ts5500_flash: avoid calling map_destroy on NULL