Fix problem of get vm snapshots, described in #553

resolve bug 553, problems of get vm snapshots and delete vm that have snapshots are resolved.