Fixes bug where initially empty filter would not have been saved after a first rule had been added in GUI.