(refactoring) Fix a NullPointerException in some case

ChangesFactory returns a null object when no replacement have to be
applied on a list of files. Avoid NPE when it is the case and other
Changes have to be appended later.