Long time existence and bounded scalar curvature in the Ricci-harmonic flow