[[ Bug 12182 ]] Make sure index var is uint4 when computing pageRanges.
Merge branch 'bugfix-12182' into release-6.6.2