Fix 'resume' behaivour

On KVM environments, domain property 'state' is a function that
returns a list like this: domain.state() = [3, 1]

This patch needs to be tested on VBOX environment before merging.

Change-Id: I610f6ef042d0e246b875d83188e382781995e737
Closes-Bug: #1383642