Fixing check for active stream on endpoint