Feature #2909: Fix bug in flow template update

VM template content was deleted