fix for when we automatically need to create a new PageTemplateConfiguration

The container is needed in the `findOrCreateFor` function.