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.
in the event that the model service returns a NULL model, don't attempt to dereference it. below is lots of indenting related to this if