Modify the loadObjectFile a bit to return nil if it can't load anything.

Previously we had to use a hacky heuristic to guess if we had a null
osg::Object pointer.