[Fix #1227] Don't permanently change yamler

It can affect other apps. So we still change it to avoid
problems with empty yml files, but we change it back.
Merge pull request #1239 from jonas054/1227_yamler

[Fix #1227] Don't permanently change yamler