In case amdModuleId is not provided, skip that

Apparently RequireJS doesn't work well when empty name is provided.
Better skip that.