The collapse of the wave function in the joint metric-matter quantization for inflation