Improves compatibility with MySQL 5.6
Re-adds removed getPostDependencies() method
Enforces locale item being available in context
Merge pull request #667 from nsendetzky/master

Enforces locale item being available in context and improves compatibility with MySQL 5.6