Issue #2545050 by jaylensoeur, Dave Reid, Chris2, RenatoG: Dont write empty element in xml sitemap file