Partially corrected a bug: 'anki-break-at-dot' and 'anki-remove-no-cloze' crashed when the region reached the end of the buffer.