Fix main template based site layout to be rendered using the parent request context (when called in subrequest)