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.
Merge pull request #1798 from aRn0D/fix/behat

The default currency have to be loaded before user authentication