Fix bug in prev/next paging.
Fix crash when no post found.
OK, really fix crash this time.