If the mainData gets corrupted, reset it
Merge pull request #578 from stellar/reset-corrupt-main-data

If the mainData gets corrupted, reset it