Fix Publication Log Change History migration

Previous version of this migration returned SpecialistDocumentEditions
with empty array change notes history. This commit fixes the query to
only return editions with a change note history with something in it and
also adds a condition to make sure that the object pulled from the array
isn't nil.
Merge pull request #353 from alphagov/fix-publication-log-migration

Fix Publication Log Change History migration