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

(cherry picked from commit dd2886748d785b45726ae6521f9ca49a18a7a9a0)