Projectile-fragment yields as a probe for the collective enhancement in the nuclear level density