Fix crash when loading page with only one post