Fix WPML check to use $sitepress object