Fix single post/page views when template_redirect is active