when delete a sentence also set the related words the sentence_id to nil