Request.py: improve instance-state handling.

Does not fail when requested instance is not ready.
Factor code with instance-guid.