On continuity equations in infinite dimensions with non-Gaussian reference measure