Don't crash if class repo is not initialized