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