Issue #2249723 by andrei.dincu: Set state variables before first entity creation in xmlsitemap.install