Empty save doesn't trigger callbacks

In addition to #324, here a testcase.