flash: at91samd: fix use of is_erased in check