Fix gateway getting into redirect loop when trying to access an agent which is not running but his descriptor is in database.
Show a meaningful error when trying to use feat-service agentrestart but the host agent is not running.