Fix problem when VM has snapshots

Fix the problem when VM has snapshots and  ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP=1