[rsentence] Fix segfault, sentence length 0 || 1