[template] `container` classes must not be nested (closes #3892039) [applied]