Correct navigation to previous section.

Should move to last section of previous chapter instead of first section
of previous chapter when current section is first one in this chapter.