Trust the Model When It Is Confident: Masked Model-based Actor-Critic