BZ1173648: Guided Rule Editor: Allows you to use variables out of the scope of the pattern in LHS

(cherry picked from commit 77bc22a106a801f3cbdf2e212b6a6ab4748b278a)