Add a check to verify that the tasks read from EEPROM are valid.