MODE-2176 Fixed the case when projections become invalid between repository restarts by cleaning them up.