fix the crash if the server return 204 status