Issue #2249723 by andrei.dincu: Change variable name to rebuild_needed in xmlsitemap_rebuild_batch() function