Fix variable.tmp_factor_ids NPE for orphan vars
Fix variable.tmp_factor_ids NPE for orphan vars

HazyResearch/deepdive,HazyResearch/deepdive,HazyResearch/sampler,HazyResearch/deepdive,HazyResearch/deepdive,HazyResearch/sampler,HazyResearch/sampler