Fix a potential NULL reference.
Fix a potential NULL reference.

RealityFactory/ogre,RealityFactory/ogre,RealityFactory/ogre,paroj/ogre,paroj/ogre,OGRECave/ogre,OGRECave/ogre,RealityFactory/ogre,OGRECave/ogre,RealityFactory/ogre,paroj/ogre,paroj/ogre,paroj/ogre,OGRECave/ogre,OGRECave/ogre