[OGRE-226] Check that mParent is non-NULL before accessing to prevent possible crashes.
[OGRE-226] Check that mParent is non-NULL before accessing to prevent possible crashes.

--HG--
branch : v1-9

jhu-lcsr-forks/ogre,jhu-lcsr-forks/ogre,jhu-lcsr-forks/ogre,jhu-lcsr-forks/ogre,jhu-lcsr-forks/ogre