client: fix stream with nil output stream