Fix crash loading un-named amd modules

I think this patch over v1.0.0 could be interesting. It avoid a crash loading unnamed amd modules.

I know v1.0.0 is outdated but, for now, it is the only stable version.