When to Update Your Model: Constrained Model-based Reinforcement Learning