Fix pre-iOS7 text box alignment

Also added some protection against corrupted/invalid saved data