Throw error when a null item gets registered to the oredict