More obvious test failure messages for QEMU test
If the test case couldn't connect to the VM with SSH, it used to fail with a Python error of accessing the 'missing' variable without having it defined.
With this commit, it prints out 'Could not connect to the VM via SSH' instead.