Make sure the module still exists before compacting its data.