Do not write if apply() did not change the file. am: 1f99f81bdc am: 331a4bb8d4
am: 0dfa7b58b8

Change-Id: I64d9e83dbabdf1f3f3574cea135488cb86d4a2c1