BZ1158813: 'Fact Type Cannot be found' error when Collect is used in Guided Rule

(cherry picked from commit d9bcf599aefcdf420d97fa383a1a51ce1edde461)