OPENJPA-2675 implement null-check for CriteriaQueryImpl#equals txs to Kaloyan Spiridonov for the catch!