only include __moduleName if set

When no module name is set (for anonymous modules), the dynamic loader can set a `__moduleName` variable during execution. In order for this to work, we need to leave it out when it would just be `__moduleName = (void 0)`.