CA-99541: Fix himn when a VM cannot connect to Xapi.

Passed TC-16120.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>