CLOUDSTACK-4627: fix NPE in vm migration
CLOUDSTACK-4628:[Automation] Failed to create template from snapshot
with same name; after deleting the first one.