Effect of polariton-polariton interactions on the excitation spectrum of a nonequilibrium condensate in a periodic potential