Issue #2249723 by andrei.dincu: Get correct language id in xmlsitemap_generate_chunk()