Changes StateValueUtils#resolveReferences to null the invisible items.