fix some bugs in models

* fixes an issue with models getting loaded from the non-rendering thread which would sometimes cause crashes
* handles rendering and ray picking of models with bad model urls... basically draws a sphere instead.
this is where we render the sphere if the model itself can not be rendered