Fix for missing layouts array when using Template::advanced_conditionals() in EE 2.8+