add sanity check for sitemap-saved hook

not called if nothing saved.
fixes empty page cache
fix for language not set