Fix a problem in MCJIT identifying the module containing a global variable.

Patch by Keno Fischer!