Fix failing stitcher due to template that is not contained within single root element