Fix WPML check to look at $sitepress object