Fixed an issue where the next and previous post links could overshoot and link to blank pages