HHH-7985 NullPointer with JPA Criteria (tests)

I wrote tests but i didn't reproduce NPE