Proper WPML language detection fix