Upper semicontinuity of pullback attractors for a nonautonomous damped wave equation