OPENJPA-1986: Extra queries being generated when cascading a persist - added another/similar check to the ones added by Rick.