Fixes #5740: Do not copy a file from a template if the template does not...

... exist

Ticket: http://www.rudder-project.org/redmine/issues/5740