[closebrackets addon] Fix reference to removed variable

Issue #1552