Fixes #4487: prevent the removal of blank lines in template (backport of cfengine f0dd1f0483fe5f234c9dc82405a057e4d6db0b10)