Fix code crash when state is passed as undefined on texture during releaseGlobject
Fix code crash when state is passed as undefined on texture during releaseGlobject

when using PagedLod Model somtimes the state is passed undefined to
relaseGLObjects function so it needs to be handeled so code wont crash

gideonmay/osgjs,jtorresfabra/osgjs,kkuunnddaannkk/osgjs,hishamabdelrahman/osgjs,kkuunnddaannkk/osgjs,gideonmay/osgjs,hishamabdelrahman/osgjs,jtorresfabra/osgjs,gideonmay/osgjs,kkuunnddaannkk/osgjs,jmirabel/osgjs,jtorresfabra/osgjs,jmirabel/osgjs,jmirabel/osgjs,cedricpinson/osgjs,cedricpinson/osgjs,hishamabdelrahman/osgjs,cedricpinson/osgjs