BZ-1051552 - Rule template which modifies facts on RHS is invalid and fails project build

(cherry picked from commit ce465c9bd9aa7ff80673aae66216073b10bb363b)