CLOUDSTACK-4108: fix create template from snapshot for vmware& s3