Fixed some undefined index error in Sentence->beforeSave()