Moved code which extracts editable ranges to separate method and passed there cloned cached ranges array to avoid changing cache.
Changelog entry.
Merge branch 't/11493'