Fix issue where an inclusive range query would include the nearest term in the index above a non-existant specified upper term.