Remove duplicates in the list of mapped entities in the profile

Mapping debug: duplicate entities:
   -  added check that entity is not already collected

fix of #296