Fixed bug that caused an error: "array_merge(): Argument #2 is not an array" when there is no parameter with keys "criteria" and "sorting"
Merge pull request #1796 from sivolobov/master

Fixed bug that caused an error: "array_merge(): Argument #2 is not an ar...
The default currency have to be loaded before user authentication.