Make single post page controller return nil when post not found so correct 404 page is returned to browser.