Fix bug with broken slice retrieval

The bug was introduced in dd0a6bb0 while separating data retrieval and response
generation of stack_info. Thanks to Eric Perlman (@perlman) for reporting this.