Fix prevnext snippet.

Set $prev- and $nextTitle and $prev- and $nextURL to false when there are no next/prev visible pages.