Resummation of the perturbation series for an interaction of a scalar field with a quantized metric