Solution of the Stochastic Heat Equation with Nonlinear Losses Using Wiener-Hermite Expansion