When previous or next button tries to scroll to an offscreen cell, get the index path of the offscreen cell and not the currently selected cell.

This fixes a mistake made during merging.