If module is defined as null before jQuery, an error is thrown

If `module = null` is included before jQuery, an error is thrown because null is an object but module.exports is not a property of it. 

This checks to make sure module is a truthy value before checking its properties.
typeof null = "object"
typeof {} = "object"
typeof null.prop = JS error
typeof {}.prop = undefined

Not entirely sure how to write a test for this. If someone wants to point me in a direction, I'll gladly try it out.