Fixed bug that caused an error: "array_merge(): Argument #2 is not an array" when there is no parameter with keys "criteria" and "sorting"