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.
Why to have a method for this and not access static property directly?