VE-1619: Resign from clearing HTML after rendering

Previously, GalleryItemNode and GalleryItemCaptionNode elements were attached to the GalleryNode and then removed. This was unnecessary and is fixed by this.