Fixed: Crash when selecting a collapsed VM from a hypervisor

Previously, when selecting a collapsed VM from the Hypervisor, the application crashed.
Now it firstly expand the group of the VM and then select the VM.