Fix oo-admin-repair: Do not depend on gear index to know whether it has framework cart or not.