fix call to registerpackages where packageAssemblies is empty