Fixed localize_url to return $old_url if it should skip