Fixed getting the latest snapshot in case the VM doesn't have any current snapshot

In special circumstances, the virtual machine loses its "current snapshot". Instead of quitting, Cuckoo should try to get the latest snapshot of the vm. The feature was already there but was broken somehow. This patch fixes the problem.