Fixes crash when enabling the language module and use the entity manager.

- Fixes crash when the language module wasn't enabled.
- Use the entity manager instead of static methods on the currency entity.
- Minor Code Standard fixes.