am de0898f0: Don\'t ignore "update to empty" when checking whether the state is dirty

* commit 'de0898f0337d3c6ea818237b0a94acf1f15b6299':
  Don't ignore "update to empty" when checking whether the state is dirty