BZ-1089341 - Guided rule editor: rule cannot be saved when using expression editor

(cherry picked from commit 291c00afc3172ceec4ef7b668d2af49a7e98a879)