Fixed crash that could happen discarding a module and the garbage collector held a reference to an object declared in the module

git-svn-id: https://angelscript.svn.sourceforge.net/svnroot/angelscript/trunk@1537 404ce1b2-830e-0410-a2e2-b09542c77caf