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

Change-Id: I845318f60eadb6c31f9795024cf10df33a15dc20