fix NPE in MultiMap when the service is shutdown before the migration is...

... processed. Fixes #1823