Improved handling when deleting all cases and adding new case to case group
p4#: 20990