vmware: Use SessionIsActive to find stale session
An API invocation with a stale session returns an empty response. In order
to distinguish it from an API returning valid empty response, the session
is recreated and the API is retried. If an empty response is received even
after the retry, it can be assumed that the API response is actually empty.
But this behavior results in authentication error from the VMware server
when there is an active session and the API response is actually empty.
This change fix this behavior by using the SessionIsActive check to
identify stale session.
Change-Id: I6ddc4028bc5319cd22006de0590c13d6868c3494
Closes-Bug: #
1284979