Added a couple of error checks (empty perf stats and VM not powered on)