MDL-37893 Allow elements with no final tags to form a grouped path