EMX / MysqlRepository fixes

can dataService.getRepositoryByEntityName(name) be null?