Stolarz missed an expected start at the Ottawa Senators on Saturday after taking a puck to the throat during warmups and went to the hospital before rejoining the team for the flight home to Toronto that night following the 5-2 loss.
Matthew Knies scored twice, William Nylander had a goal and an assist, and John Tavares had three assists for the Maple Leafs (30-29-13), who had lost three in a row (0-2-1).
Elias Lindholm and Charlie McAvoy scored, and Jeremy Swayman made 31 saves for the Bruins (39-24-8), who were 3-0-2 in their previous five.
Lindholm gave the Bruins a 1-0 lead at 5:04 of the first period. He took a pass from Morgan Geekie on a 2-on-1 and scored with a wrist shot from the right face-off circle that went in off the far post.
Knies’ short-handed goal tied it 1-1 at 7:27 of the second period. He won a footrace with Boston defenseman Mason Lohrei to a loose puck in the neutral zone, broke in alone and beat Swayman to the blocker side.
The Maple Leafs took a 2-1 lead during a 4-on-3 situation when Max Domi scored at 18:08. He finished a give-and-go with Tavares by scoring through the five-hole after a forehand-backhand deke.
After the Bruins killed off the remaining 2:53 of a five-minute major to Nikita Zadorov to start the third period, Nylander made it 3-1 at 3:00. His shot from a sharp angle along the right side beat Swayman.
McAvoy’s power-play goal cut the deficit to 3-2 at 5:08. Pastrnak took a one-timer from the left circle that ricocheted off McAvoy, who leaped in an attempt to avoid the shot before it his his skate and slipped past Stolarz.
Knies scored an empty-net goal with 22 seconds remaining for the 4-2 final.