pi_http: fix copy/paste error that can lead to a crash when 'order_by_cols' is used
(cherry picked from commit 54181eb35c90b393dbe543a48bf6805926d48566)