this changes prevents trying to replace placeholders not used in the file....
this changes prevents trying to replace placeholders not used in the file. However, if a field value is None it will still fail. We need to discuss the approach to follow if a required field is none, should it be replaced by the text None or how can we propagate an error to the frontend?