Fixed http_build_query warnings on PHP < 5.4

* bug: 59880

Change-Id: I2eae4bed17a72b58ac33f3538dd7d16f4356a3a0
(cherry picked from commit 616df59b322e45e5129900c8a8326be3aff55045)