Fix classcast exception from setting addonrepository into Forge instance