add sanity check for sitemap-saved hook

not called if nothing saved.
fixes empty page cache
fix for language not set
move ck define after lang load for ckllang