Optical polarization evolution near a non-Hermitian degeneracy