Fix issues with translated custom taxonomies in WPML