Small adjustment to error handling

Certain errors are html rather than xml and fail to parse in the
traditional method.
Bug fix related to returning root password

The VM root password was only being returned if the server launched in a
particular fashion.