xhttp_pi: fix copy/paste error that can lead to a crash when 'order_by_cols' are used
(cherry picked from commit 216faa86af3d6db70fae9186ab2776efc27a5f55)