Convergence Analysis of the Wasserstein Proximal Algorithm beyond Geodesic Convexity