Fix IndexOutOfBoundsException when trying to get oredict items before registering them.