Effective theory for the propagation of a wave packet in a disordered and nonlinear medium