Avoid wrap-around when paging/moving up/down in folders/messages.

  There were some re-display issues when jumping down 10 messages
 when there were only five further ones, for example.

  The new behaviour now matches the old, which seems reasonable.