Bayern Munich was unaffected by heavy snowfall and freezing temperatures as they beat host Hertha Berlin 1-0.