Added a workaround for an envers bug (see https://hibernate.onjira.com/browse/HHH-7682).