Fixes Hyper-V vm state issue

The method which gets VM related information can fail if the
vm is in an intermediary state such as "Shutting down".
The reason is that some of the Hyper-V specific vm states
are not defined as possible states.

This patch assures that a valid state is always returned by
this method.

Change-Id: I64e95f6b537e83a30dd64474f63f140e0e8e7373
Closes-Bug: #1352428
(cherry picked from commit 86a4bd7d9b34057f04ebbe2d2131f033d33d082b)
Merge "Fixes Hyper-V vm state issue" into stable/icehouse