Possible fix for previewing pages with inherited templates.