TPS-748 [5.4.1]bug in condition for tMDMinput(TMDM-7695)

TMDM-7695: "bug in condition for tMDMinput"

Fix incorrect condition leading to extra path computation when a reusable type is used several types within entity *and* used in condition (5.5 branch version of 5.6+ fix).
(https://jira.talendforge.org/browse/TMDM-7695)
(cherry picked from commit 111d913)

Conflicts:
	org.talend.mdm.core/src/com/amalto/core/storage/hibernate/StandardQueryHandler.java