Fix a bug with previous refactoring of getPaginationLeftOffset.