Bayern almost took the lead just six minutes into the game, but Pierre Hojbjerg saw his header wide off the post.
Ricardo Goulart, Gao Lin and Robinho's attempts in three minutes forced Manuel Neuer to make excellent saves.
Lahm and Thiago Alcantara came off the bench after the half break, before Muller and Xabi Alonso replaced Gotze and Joshua Kimmich in the 55th minute.