Detection of the presence of stereo signals and pilot signal regeneration