Anomalous spectral dependence of optical polarization and its impact on spin detection in InGaAs/GaAs quantum dots