Fix assembly load crash for modules with dependencies