BZ-1052269 - Guided rule editor: rule with incomplete String constraint reopens with different definition and elements missing

(cherry picked from commit c0c8dc08ec1ced5eaecb5b808c90e36d297047f4)
BZ-1052269 - Guided rule editor: rule with incomplete String constraint reopens with different definition and elements missing

(cherry picked from commit e4e85865e31da3fcd421c7ad1d86875d1132ce9f)
BZ-1052269 - Guided rule editor: rule with incomplete String constraint reopens with different definition and elements missing

(cherry picked from commit 3fe2e03355b6b49b30d3f350d277d12fb4ee5591)
BZ-1052269 - Guided rule editor: rule with incomplete String constraint reopens with different definition and elements missing

(cherry picked from commit 03578eb6e8faf1dc6b50af0232672fed2720662f)