MT#10041 Query_params raised multidomain request in not multidomain env.

Let's query_params to know config

(cherry picked from commit 0c26c90685c98ec9a36f113726df93074dec9a54)
(cherry picked from commit 7c3313fb348aaac3c38e0b2a427168d8385c851b)