On the small noise limit in the Smoluchowski-Kramers approximation of nonlinear wave equations with variable friction