Fix pagination of stack-list

This was broken by the refactor in dde5a81e8060b373982f165856071a80be1d40bb
because the arguments to the DB call are in a different order to the ones
in the API, presumably for historical reasons.

Change-Id: I7503feb62089b252766a510281e0e4513945ad63
Closes-Bug: #1332611
Merge "Fix pagination of stack-list"