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 fixes ray picking of models with bad model URLS