[sdb] Make sure the ids of unloading assemblies is the same in the ASSEMBLY_UNLOAD event as it was in the ASSEMBLY_LOAD event.