PIM-3250 : fix findOneByIdentifier and use it in findOneByReference