Fix the "Illegal string offset" problem when performing a "With Query" with wrong param format.