mtd: m25p80: fix null pointer dereference bug