When generating a presentation from a template which includes pptxSlides, if the list contains more than one item(at least one additional slide is generated),the result file appears to be corrupted when opened with keyNote or PowerPoint.
The PowerPoint repairer signals that the first slide in the generated slides list is broken, and also, the first item to be replaced by the presentation is not properly parsed(is replaced by blank in all the generated slides), if the item is happens to be an image, the jsreport api crashes.
When I mention the first item to be replaced, I mean the chronological order in which the items were inserted in the slide.
Reproduction of the bug:
https://www.dropbox.com/s/mm48ioamfguu73b/corrupted_output.zip?dl=0