Bayer 04 won 1-0 away at Heidenheim on Bundesliga Matchday 28 thanks to a goal in added time from Emiliano Buendia.