Add specific check for "require" in hasModule check (fixes bug when using with QUnit).
Merge pull request #1238 from jgerigmeyer/develop

Add specific check for "require" in hasModule check.