Adding check if module is undefined to not create an error with existing requireJS using apps.

Because if using browserify to build an app, it will conflict with existing apps usigin requireJS and it does not matter for the requireJS use case if before testing for existence of module.