CRM-13054: Fixed incorrectly nested tags.