Close var element properly
Merge pull request #42373 from petercollingridge/comb-like-terms-fix

Close var element properly