Fix ResourceLocation stuff

getActiveModId doesn't work with classes that load late
Throw error in getActiveModId when in wrong state

Just in case this happens again,