BZ-1076158 - Guided Rule Editor allows to save invalid rules and then fails to open them.

(cherry picked from commit 58523e185d366ff4d7830f13ec613add6f553e24)