Ticket #48192 - Individual abandoned simple paged results request has no chance to be cleaned up
Description: Checking the cookie value passed by the client was not
sufficient. The negative value check was missing, which lead to
the simple paged results array out of bounds. Plus, a minor memory
leak was fixed. Thanks to Thierry Bordaz for his reviews!
https://fedorahosted.org/389/ticket/48192
(cherry picked from commit 298371d372678cf553594ae73ae57a6ea35358bf)
(cherry picked from commit 7718eb6a6714d1a284c3c706e621a7eb0ca5655a)
(cherry picked from commit 7db5fdd5f1c5e1979784833173864e9c8c49c89d)