Script to fix inconsistent edition states

As can be seen in the test data some editions have states in consistent with their version number as a result of not being correctly archived.
It's just memoizing the results of the finder, I accept it's not necessary but I felt that the set of documents might be referred to again.

The finder method is separate because I want to repeat the search afterwards to check it was successful.