Enabling Reliable Model-Based Planning with Inaccurate Models