Fixed a bug in EntityValidator#getRepository()