[BUGFIX] Adjust constructor function to current Repository class

In 6.2 the repository class was changed to not support an empty objectManager anymore. So the related class has to be adjusted.