On the regularity of the polar factorization for time dependent maps