CompletionWords buffer: fix word scanning when empty subregions