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 47b7ba9fca0aabdd23a3539ea487f80b8935d675)