Fix republishing script use of repositories

419440c0 introduced the RepositoryRegistry but did not update the
republishing script's DocumentRepositoryObserverMapper to use it.

This meant that whenever the republishing script was called it would
fail.