That's why you bring Tazawa for the righty. He has some trouble with inning in which there's a man on base, but Longoria's split is noticeable enough where you have to play that matchup. Zobrist has a better split against righties, but he's nowhere near as dangerous as Longoria. I bring in Tazawa for Longoria-Zobrist, and let him try to get at least two outs in the next inning, then Uehara for four outs.
He also had Morales as a matchup lefty had he wanted to go that route, and Dempster has been converted to relief to deal with mid-inning matchups. He had options.
I means six outs for Uehara, given the off-day.