Fix bug in portal stream where connection id was not correctly generated when handling requests from peers.