The automaker is poised to be more profitable than expected in the second half of the year but is still scrambling to keep critical plants online.