On the neutron star transition to a pion-condensed configuration