Using this syntax for a number of slides:
template.CloneSlide(template.Slides[0], pres.Slides.Count, pres, new SortedList());
but one of the slides doesn’t clone. It just ends up being blank.
You shouldn’t clone master slides. Check SlidePosition property at first and
if it’s equal to 0 then just skip this slide.