try...catch when trying to render a model. Fixes #401