ticket 89747 fix APIRequest crash when network error