Make getModeForRange() behave like getModeForSelection() when mode is not mixed
Merge pull request #7775 from adobe/nj/issue-7764

Make getModeForRange() behave like getModeForSelection() when mode is not mixed