Fix bug in EntityManager::get.