Issue #2249723 by andrei.dincu: Fix xmlsitemap_requirements hook to get data about entities from correct source