Bayern Munich missed the chance to seal a ninth successive Bundesliga title, after falling to a shock 2-1 defeat in Mainz.