HHH-7985 NullPointer with JPA Criteria (tests)