Michael Olise came off the bench to score a stoppage-time equaliser and rescue a draw for Bayern Munich, dealing a significant blow to Heidenheim's survival hopes.