Bayern Munich survived a scare at Nurnberg as they were held to a 1-1 draw which extends their lead at the top of the Bundesliga table to two points.