create a new file if mode is append and the file does not exist
Merge branch 'feature/#6934-create-file-when-appending-on-non-existing-file-in-templatemap-generator' into develop

Close #6934