[api] fix crash in request status check when a remote instance path is used