Issue #1435264 by mgriego, gordon, Carsten Müller, rooby | FanisTsiros: Removed the XMLSitemapWriter::flush method which causes unnecessary XMLSitemapGenerationException exceptions